Random = Mock.Random

function getUserInfo(){
    console.log("hhhhh")
    
    let data = Mock.mock({
        username: Random.cname(),
        avatar: Random.image()
    })

    let json = {
        data,
        code : 200
    }

    return json
}

Mock.mock(/http:\/\/localhost\/login.php/, 'post', getUserInfo())
